package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 平台账户表对象 platform_account
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("平台账户表-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "platform_account")
public class PlatformAccountEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 账户余额
	 */
	@ApiModelProperty("账户余额")
	private BigDecimal accBalance;

	/**
	 * 最后入账时间
	 */
	@ApiModelProperty("最后入账时间")
	private Date lastIncomeTime;

	/**
	 * 最后入账金额
	 */
	@ApiModelProperty("最后入账金额")
	private BigDecimal lastIncomeAmt;

	/**
	 * 入账累计次数
	 */
	@ApiModelProperty("入账累计次数")
	private Long totalIncomeNum;

	/**
	 * 入账累计金额
	 */
	@ApiModelProperty("入账累计金额")
	private BigDecimal totalIncomeAmt;

}
